package games.checkers;

import java.awt.Color;
import java.util.ArrayList;

public class gameColors 
{
	private ArrayList schemes;
	
	public class colorScheme
	{		
		public Color lightTile;
		public Color darkTile;
		public Color player1;
		public Color player2;
		public String name1;
		public String name2;
		
		public colorScheme(Color lt,Color dt, Color p1, Color p2, String n1, String n2)
		{
			lightTile = lt;
			darkTile = dt;
			player1 = p1;
			player2 = p2;
			name1 = n1;
			name2 = n2;
		}
	}
	
	public gameColors()
	{
		schemes = new ArrayList();
		//official checkers 
		schemes.add(new colorScheme(
				new Color(240,220,130),
				new Color(0,130,0),
				new Color(255,255,255),
				new Color(255,0,0),
				"White", 
				"Red")
		);
		//black and red
		schemes.add(new colorScheme(
				new Color(255,0,0),
                new Color(10,10,10),
                new Color(100,100,100),
                new Color(255,0,0),
                "Black",
                "Red"));
		//black and white
		schemes.add(new colorScheme(
				new Color(255,255,255),
                new Color(10,10,10),
                new Color(100,100,100),
                new Color(255,255,255),
                "Black",
                "White"));
	}
	
	public colorScheme getScheme(int s)
	{
		return (colorScheme) schemes.get(s);
	}
}
